package com.salton123.ui.base

import android.view.View
import androidx.fragment.app.FragmentActivity

/**
 * @Time:2021/4/20 16:56
 * @Author:wujinsheng
 * @Description:
 */
interface ILifeDelegate : View.OnClickListener {

    fun attach(impl: ILifeDelegate)

    fun show(vararg views: View)

    fun hide(vararg views: View)

    fun self(): ILifeDelegate

    fun longToast(toast: String?) //长Toast

    fun shortToast(toast: String?) //短Toast

    fun activity(): FragmentActivity?

    fun <T : View?> f(resId: Int): T

    fun setListener(vararg ids: Int)

    fun setListener(vararg views: View)
}